package org.charles.zhifou.model.dto.question;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 创建题目请求
 *
 * @author Charles
 * @version 1.0
 */
@Data
public class QuestionAddRequest implements Serializable {

    @Schema(description = "题目内容 (JSON)")
    @NotNull(message = "题目内容不能为空")
    // @Length(min = 1,  message = "题目内容不能为空")
    private List<QuestionContentDTO> questionContent;

    @Schema(description = "应用 id")
    @Min(value = 1, message = "应用 id 必须大于 0")
    private Long appId;

    @Serial
    private static final long serialVersionUID = 1L;
}